package Vistas;
import java.awt.event.ActionListener;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JLabel;

import Controlador.ControladorVentanaUmpire;
import javax.swing.JOptionPane;
import javax.swing.LayoutStyle;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaEquipo extends javax.swing.JFrame {

    /** Creates new form JFrameArbitro */
    public VentanaEquipo() {
        initComponents();
    }

    
    
    public JComboBox getjComboJugadores() {
		return jComboJugadores;
	}



	public void setjComboJugadores(JComboBox jComboJugadores) {
		this.jComboJugadores = jComboJugadores;
	}

	


	public javax.swing.JButton getjButtonAgregar() {
		return jButtonAgregar;
	}



	public void setjButtonAgregar(javax.swing.JButton jButtonAgregar) {
		this.jButtonAgregar = jButtonAgregar;
	}



	public javax.swing.JButton getjButtonSalir() {
		return jButtonSalir;
	}



	public void setjButtonSalir(javax.swing.JButton jButtonSalir) {
		this.jButtonSalir = jButtonSalir;
	}



	public javax.swing.JLabel getjLabelApellido() {
		return jLabelApellido;
	}



	public void setjLabelApellido(javax.swing.JLabel jLabelApellido) {
		this.jLabelApellido = jLabelApellido;
	}



	public javax.swing.JLabel getjLabelCedula() {
		return jLabelCedula;
	}



	public void setjLabelCedula(javax.swing.JLabel jLabelCedula) {
		this.jLabelCedula = jLabelCedula;
	}



	public javax.swing.JLabel getjLabelFecha() {
		return jLabelFecha;
	}



	public void setjLabelFecha(javax.swing.JLabel jLabelFecha) {
		this.jLabelFecha = jLabelFecha;
	}



	public javax.swing.JLabel getjLabelJuegos() {
		return jLabelJuegos;
	}



	public void setjLabelJuegos(javax.swing.JLabel jLabelJuegos) {
		this.jLabelJuegos = jLabelJuegos;
	}



	public JLabel getjLabel1() {
		return jLabel1;
	}



	public void setjLabel1(JLabel jLabel1) {
		this.jLabel1 = jLabel1;
	}



	public javax.swing.JLabel getjLabelNombre() {
		return jLabelNombre;
	}



	public void setjLabelNombre(javax.swing.JLabel jLabelNombre) {
		this.jLabelNombre = jLabelNombre;
	}



	public javax.swing.JPanel getjPanel1() {
		return jPanel1;
	}



	public void setjPanel1(javax.swing.JPanel jPanel1) {
		this.jPanel1 = jPanel1;
	}



	public javax.swing.JTextField getjTextAnFund() {
		return jTextAnoFund;
	}



	public void setjTextAnoFund(javax.swing.JTextField jTextAnFund) {
		this.jTextAnoFund = jTextAnFund;
	}



	public javax.swing.JTextField getjTextCodigo() {
		return jTextCodigo;
	}
	



	public void setjTextCodigo(javax.swing.JTextField jTextCodigo) {
		this.jTextCodigo = jTextCodigo;
	}



	public javax.swing.JTextField getjTextCiudad() {
		return jTextCiudad;
	}



	public void setjTextCiudad(javax.swing.JTextField jTextCiudad) {
		this.jTextCiudad = jTextCiudad;
	}



	public javax.swing.JTextField getjTextNombreEstadio() {
		return jTextNombreEstadio;
	}



	public void setjTextNombreEstadio(javax.swing.JTextField jTextNombreEstadio) {
		this.jTextNombreEstadio = jTextNombreEstadio;
	}



	public javax.swing.JTextField getjTextNombre() {
		return jTextNombre;
	}



	public void setjTextNombre(javax.swing.JTextField jTextNombre) {
		this.jTextNombre = jTextNombre;
	}
	public void setjAnFund (javax.swing.JTextField jTextAnFund ){
		this.jTextAnoFund  = jTextAnFund ;
	}



	@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        GroupLayout jPanel1Layout = new GroupLayout((JComponent)jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jLabelNombre = new javax.swing.JLabel();
        jLabelApellido = new javax.swing.JLabel();
        jLabelCedula = new javax.swing.JLabel();
        jLabelFecha = new javax.swing.JLabel();
        jLabelJuegos = new javax.swing.JLabel();
        jTextCodigo = new javax.swing.JTextField();
        jTextNombre = new javax.swing.JTextField();
        jTextAnoFund = new javax.swing.JTextField();
        jTextNombreEstadio = new javax.swing.JTextField();
        jTextCiudad = new javax.swing.JTextField();
        jButtonAgregar = new javax.swing.JButton();
        jButtonSalir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Datos del Equipo")));
        jPanel1.setFont(new java.awt.Font("Calibri", 1, 18));

        jLabelNombre.setFont(new java.awt.Font("Calibri", 1, 14));
        jLabelNombre.setText("Nombre:");

        jLabelApellido.setFont(new java.awt.Font("Calibri", 1, 14));
        jLabelApellido.setText("An de fundacion:");

        jLabelCedula.setFont(new java.awt.Font("Calibri", 1, 14));
        jLabelCedula.setText("Codigo:");

        jLabelFecha.setFont(new java.awt.Font("Calibri", 1, 14));
        jLabelFecha.setText("Ciudad:");

        jLabelJuegos.setFont(new java.awt.Font("Calibri", 1, 14));
        jLabelJuegos.setText("Nombre del Estadio:");
        {
        	jLabel1 = new JLabel();
        	jLabel1.setText("Jugadores(archivo)");
        	jLabel1.setFont(new java.awt.Font("Calibri",1,14));
        }
        
        {
        	ComboBoxModel jComboJugadoresModel = 
        		new DefaultComboBoxModel(
        				new String[] { "Lista Jugadores 1", "Lista Jugadores 2","Lista Jugadores 3", });
        	jComboJugadores = new JComboBox();
        	jComboJugadores.setModel(jComboJugadoresModel);
        }
        
        jPanel1Layout.setVerticalGroup(jPanel1Layout.createSequentialGroup()
        	.addContainerGap(34, 34)
        	.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jTextCodigo, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jLabelCedula, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addGap(18)
        	.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jTextNombre, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jLabelNombre, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addGap(18)
        	.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jTextAnoFund, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jLabelApellido, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addGap(18)
        	.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jLabelFecha, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jTextCiudad, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addGap(18)
        	.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jTextNombreEstadio, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jLabelJuegos, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
        	.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jComboJugadores, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jLabel1, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addContainerGap(16, 16));
        jPanel1Layout.setHorizontalGroup(jPanel1Layout.createSequentialGroup()
        	.addContainerGap(23, 23)
        	.addGroup(jPanel1Layout.createParallelGroup()
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jLabelNombre, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	        .addGap(91))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jLabelCedula, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	        .addGap(98))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jLabelApellido, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	        .addGap(14))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jLabelFecha, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	        .addGap(99))
        	    .addComponent(jLabelJuegos, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jLabel1, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 159, GroupLayout.PREFERRED_SIZE))
        	.addGap(32)
        	.addGroup(jPanel1Layout.createParallelGroup()
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jTextCiudad, GroupLayout.PREFERRED_SIZE, 102, GroupLayout.PREFERRED_SIZE)
        	        .addGap(0, 45, Short.MAX_VALUE))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jTextNombreEstadio, 0, 104, Short.MAX_VALUE)
        	        .addGap(43))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jTextAnoFund, GroupLayout.PREFERRED_SIZE, 114, GroupLayout.PREFERRED_SIZE)
        	        .addGap(0, 33, Short.MAX_VALUE))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jTextNombre, GroupLayout.PREFERRED_SIZE, 114, GroupLayout.PREFERRED_SIZE)
        	        .addGap(0, 33, Short.MAX_VALUE))
        	    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
        	        .addComponent(jTextCodigo, 0, 116, Short.MAX_VALUE)
        	        .addGap(31))
        	    .addComponent(jComboJugadores, GroupLayout.Alignment.LEADING, 0, 147, Short.MAX_VALUE))
        	.addContainerGap());

        jTextCodigo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextCodigoActionPerformed(evt);
            }
        });

        jTextNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextNombreActionPerformed(evt);
            }
        });

        jTextAnoFund.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextAnFundActionPerformed(evt);
            }
        });

        jTextNombreEstadio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextNombreEstadioActionPerformed(evt);
            }
        });

        jTextCiudad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextCiudadActionPerformed(evt);
            }
        });

        jButtonAgregar.setText("Agregar");
        jButtonAgregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarActionPerformed(evt);
            }
        });

        jButtonSalir.setText("Salir");
        jButtonSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSalirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setVerticalGroup(layout.createSequentialGroup()
        	.addContainerGap(37, 37)
        	.addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, 294, GroupLayout.PREFERRED_SIZE)
        	.addGap(20)
        	.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
        	    .addComponent(jButtonAgregar, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
        	    .addComponent(jButtonSalir, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
        	.addContainerGap(47, 47));
        layout.setHorizontalGroup(layout.createSequentialGroup()
        	.addContainerGap(68, 68)
        	.addGroup(layout.createParallelGroup()
        	    .addGroup(layout.createSequentialGroup()
        	        .addGap(0, 0, Short.MAX_VALUE)
        	        .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, 391, GroupLayout.PREFERRED_SIZE))
        	    .addGroup(GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
        	        .addGap(90)
        	        .addComponent(jButtonAgregar, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
        	        .addGap(49)
        	        .addComponent(jButtonSalir, GroupLayout.PREFERRED_SIZE, 99, GroupLayout.PREFERRED_SIZE)
        	        .addGap(0, 53, Short.MAX_VALUE)))
        	.addContainerGap(95, 95));

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jTextCodigoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextCedulaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextCedulaActionPerformed

private void jTextNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextNombreActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextNombreActionPerformed

private void jTextAnFundActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextApellidoActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextApellidoActionPerformed

private void jTextNombreEstadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextJuegosActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextJuegosActionPerformed

private void jButtonAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonAgregarActionPerformed

private void jTextCiudadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFechaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextFechaActionPerformed

private void jButtonSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSalirActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonSalirActionPerformed




    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAgregar;
    private javax.swing.JButton jButtonSalir;
    private javax.swing.JLabel jLabelApellido;
    private javax.swing.JLabel jLabelCedula;
    private javax.swing.JLabel jLabelFecha;
    private javax.swing.JLabel jLabelJuegos;
    private JComboBox jComboJugadores;
    private JLabel jLabel1;
    private javax.swing.JLabel jLabelNombre;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField jTextAnoFund;
    private javax.swing.JTextField jTextCodigo;
    private javax.swing.JTextField jTextCiudad;
    private javax.swing.JTextField jTextNombreEstadio;
    private javax.swing.JTextField jTextNombre;
    // End of variables declaration//GEN-END:variables
   
    
    public String  getCodigo(){
		return jTextCodigo.getText();
	}
	
    public String getNombre(){
		return jTextNombre.getText();
	}
    public String getanoFundacion(){
                return jTextAnoFund.getText();
    }
    public String getestadio(){
                return jTextNombreEstadio.getText();
    }
    public String getciudad(){
		return jTextCiudad.getText();
	}
    public void agregarListener(ActionListener accion){
	   jButtonAgregar.addActionListener(accion);
       jButtonSalir.addActionListener(accion);
	}
    public void limpiarCampos(){
  
            jTextAnoFund.setText("");
            jTextCodigo.setText("");
            jTextCiudad.setText("");
            jTextNombreEstadio.setText("");
            jTextNombre.setText("");
    }
    public void mostrarMensaje(String msj){
    JOptionPane.showMessageDialog(this, msj);
    }
    public void salir(){
    System.exit(0);
    }

}
